package com.ndp.fb.mongo.api;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.mongodb.DBObject;

public interface ProductSetMongoService {
	String saveProductSet(JSONObject productSet);
	
	JSONArray getProductSets(JSONObject query);
	JSONArray getProductSets(List<DBObject> query);
	JSONArray getProductSets(JSONObject query,Integer pageIndex,Integer pageSize,JSONObject order);
	Long countProductSet(JSONObject query);
	JSONArray getPixelDataIds(String job_id,String event);
	JSONArray getPixelData(String job_id,String event);
	JSONObject getPixelData(String data_id,String event,String item_id);
	void updateData(String p_id,int i, int j,JSONArray data,String data_status);
	void updateProductSetData(String p_id,String fb_script,List<String> ids,String data_status);
	void updateProductSetTargetRule(String p_id,JSONObject target_rule);
	void updateProductSetDataStatus(Long feed_id,String data_status);
	void updateProductSetReportDataStatus(String p_id,String data_url,String data_status);
	void updateProductSetDataUpdatedUuid(String p_id,String data_updated_uuid);
	void updateProductSetStatus(String p_id,String data_status);
	void pushFBProductSetId(String p_id,Long catalog_id,Long fb_pId);
	void updateFBProductSetUpdateTime(String p_id,Long fb_pId);
	
	void updateProductSetDatePersent(String p_id,Integer date_persent);
}
